export default [{
  type: 'post',
  url: '/api/user/login',
  response: (res) => {
    let result = false;
    if (res.body.username === 'admin' && res.body.password === '111111') {
      result = true;
    }

    if (result) {
      return {
        data: {
          token: 123456789,
          username: res.body.username,
          age: 18
        },
        message: '登录成功',
        status: true
      }
    }
    return {
      data: false,
      message: '账号或密码错误',
      status: false
    }
  }
},
{
  type: 'get',
  url: '/api/user/menu',
  response: (res) => {
    return {
      menusList: [
        { title: '测试页面', icon: 'icon-moxingxunlian', path: '/newBox', limit: ['ADD', 'DELETE', 'VIEW', 'EDIT'] },
        { title: '测试详情', icon: 'icon-sort', path: '/newBox/third', },
        { title: '翻译', icon: 'icon-a-4-Transfer', path: '/English', },
        { title: '翻译子集', icon: 'icon-a-4-Transfer', path: '/English/EnglishChild', },
        { title: '1', icon: 'icon-sort', path: '/first', },
        { title: '2', icon: 'icon-sort', path: '/first/second', },
        { title: '3', icon: 'icon-sort', path: '/first/second/third', },
        { title: '截图页面', icon: 'icon-a-2-Image', path: '/cropper', },
        { title: '权限管理', icon: 'icon-a-3-iSettings', path: '/limit', },
        { title: '用户管理', icon: 'icon-zhanghu', path: '/limit/user', },
        { title: '角色管理', icon: 'icon-zhibanrenyuanguanli', path: '/limit/role', },
        { title: '菜单管理', icon: 'icon-a-061_shuxie', path: '/limit/menu', },
      ],
      // message: '登录成功',
      status: true
    }
  }
}]